let routes = [{
        path: '/',
        redirect: {
            name: "home"
        }
    },
    {
        path: '/refresh',
        name: 'refresh',
        component: resolve => require(['@/view/refresh.vue'], resolve),
        title: "刷新"
    },
    {
        path: '/home',
        name: 'home',
        component: resolve => require(['@/view/home.vue'], resolve),
        title: "首页"
    },
    {
        path: '/login',
        name: 'login',
        component: resolve => require(['@/view/login.vue'], resolve),
        title: "登录"
    },
    {
        path: '/register',
        name: 'register',
        component: resolve => require(['@/view/register.vue'], resolve),
        title: "注册"
    },
    {
        path: '/forget_pwd',
        name: 'forget_pwd',
        component: resolve => require(['@/view/forget_pwd.vue'], resolve),
        title: "忘记密码"
    },
    {
        path: '/company_login',
        name: 'company_login',
        component: resolve => require(['@/view/company_login.vue'], resolve),
        title: "企业登录"
    },
    {
        path: '/company_register',
        name: 'company_register',
        component: resolve => require(['@/view/company_register.vue'], resolve),
        title: "企业注册"
    },
    {
        path: '/company_forget',
        name: 'company_forget',
        component: resolve => require(['@/view/company_forget.vue'], resolve),
        title: "企业忘记密码"
    },
    {
        path: '/home/about_us',
        name: 'about_us',
        component: resolve => require(['@/view/home/about_us.vue'], resolve),
        title: "关于我们"
    },
    {
        path: '/home/play/question/:questionId/:isErr/:tradeNo/:studyTaskUserId',
        name: 'question',
        component: resolve => require(['@/view/home/play/question'], resolve),
        title: "试题"
    }, {
        path: '/home/play/task/:type/:tradeNo/:period/:applyId',
        name: 'task',
        component: resolve => require(['@/view/home/play/task'], resolve),
        title: "任务"
    }, {
        path: '/home/play/trainTask/:type/:tradeNo/:period/:applyId',
        name: 'trainTask',
        component: resolve => require(['@/view/home/play/train_task'], resolve),
        title: "考前培训任务"
    }, {
        path: '/home/play/video_ali/:courseId/:applyId/:groupCode',
        name: 'video_ali',
        component: resolve => require(['@/view/home/play/video_ali'], resolve),
        title: "视频"
    }, {
        path: '/home/play/trainVideo/:courseId/:applyId/:groupCode/:studyTaskUserId',
        name: 'video_ali',
        component: resolve => require(['@/view/home/play/train_video'], resolve),
        title: "考前培训视频"
    }, {
        path: '/home/apply/flow_order/:tradeNo',
        name: 'flow_order',
        component: resolve => require(['@/view/home/apply/flow_order'], resolve),
        title: "订单流水自动跳转"
    },
    {
        path: '/home/apply/zhifubao/:tradeNo',
        name: 'zhifubao',
        component: resolve => require(['@/view/home/apply/zhifubao'], resolve),
        title: "支付宝公共页面"
    },
    {
        path: '/home/apply/zhifubaopre/:tradeNo',
        name: 'zhifubao',
        component: resolve => require(['@/view/home/apply/zhifubaopre'], resolve),
        title: "支付宝付款"
    },
    {
        path: '/home/apply/confirm_order/:kid/:tradeNo',
        name: 'confirm_order',
        component: resolve => require(['@/view/home/apply/confirm_order'], resolve),
        title: "确认订单"
    },
    {
        path: '/home/apply/offline_check/:tradeNo',
        name: 'offline_check',
        component: resolve => require(['@/view/home/apply/offline_check'], resolve),
        title: "线下审核"
    }, {
        path: '/home/apply/refund_success/:tradeNo',
        name: 'refund_success',
        component: resolve => require(['@/view/home/apply/refund_success'], resolve),
        title: "退费成功"
    }, {
        path: '/home/apply/apply_success/:tradeNo',
        name: 'apply_success',
        component: resolve => require(['@/view/home/apply/apply_success'], resolve),
        title: "报名成功"
    },
    {
        path: '/home/discovery',
        name: 'discovery',
        component: resolve => require(['@/view/home/discovery.vue'], resolve),
        title: "开发中"
    },
    {
        path: '/home/apply/apply_common_nopay/:type',
        name: 'apply_common_nopay',
        component: resolve => require(['@/view/home/apply/apply_common_nopay.vue'], resolve),
        title: "检测未付款订单"
    },
    {
        path: '/404',
        name: '404',
        component: resolve => require(['@/view/404.vue'], resolve),
        title: "404"
    },
    {
        path: '/phone404',
        name: 'phone404',
        component: resolve => require(['@/view/phone404.vue'], resolve),
        title: "phone404"
    },
    {
        path: '/web404',
        name: 'web404',
        component: resolve => require(['@/view/web404.vue'], resolve),
        title: "web404"
    },
    {
        path: '/common_question/question1/:type',
        name: 'question1',
        component: resolve => require(['@/view/home/common_question/question1.vue'], resolve),
        title: "question1"
    },
    {
        path: '/company_download',
        name: 'company_download',
        component: resolve => require(['@/view/company_download.vue'], resolve),
        title: "company_download"
    },
    {
        path: '/broswerPage',
        name: 'broswerPage',
        component: resolve => require(['@/view/home/play/broswerPage.vue'], resolve),
        title: "broswerPage"
    }
];
export default routes;
